# -*- coding: utf-8 -*-

"""
Simple Presentation System WebFolio

:Copyright: (c) 2010 Takashi NAGAI <ngi644@gmail.com>,
                     All rights reserved.
:license: BSD, see LICENSE for more details.
"""

DEFAULT_TIMEZONE = 'Asia/Tokyo'
DEBUG = True
PROFILE = False
SECRET_KEY = 'webfolioartcity'
SESSION_PREFIX = 'gaesess:'
COOKIE_AGE = 1209600 # 2 weeks
COOKIE_NAME = 'POW_SESSION'

MEDIA_URL = '/media'
#INTERNAL_MEDIA_URL = '/media'

ADD_APP_PREFIX_TO_KIND = True

ADMINS = (
)

TEMPLATE_DIRS = (
)

USE_I18N = True
DEFAULT_LANG = 'ja'

INSTALLED_APPS = (
    'kay.sessions',
    'webfolio',
)

APP_MOUNT_POINTS = {
    'webfolio':'/',
}

MIDDLEWARE_CLASSES = (
  'kay.sessions.middleware.SessionMiddleware',
  'kay.auth.middleware.AuthenticationMiddleware',
)
AUTH_USER_MODEL = 'webfolio.models.SiteUser' 


# You can remove following settings if unnecessary.
CONTEXT_PROCESSORS = (
  'kay.context_processors.request',
  'kay.context_processors.url_functions',
  'kay.context_processors.media_url',
)

JINJA2_FILTERS =  {
  'date': 'webfolio.filters.date',
  'datetime': 'webfolio.filters.datetime',
  'truefalse': 'webfolio.filters.truefalse', 
}

